package com.tjbklx1.thread.chap01.practice05;

public class CheckerThread extends Thread {

	private final SecurityGate gate;

	public CheckerThread(SecurityGate gate) {
		this.gate = gate;
	}

	@Override
	public void run() {
		for (int i = 0; i < 10; i++) {
			gate.enter();
			gate.exit();
		}
	}

}
